package com.yt.order.provider.dao.impl;

import com.yt.core.dao.GenericDaoImpl;
import com.yt.order.api.model.GroupOrder;
import com.yt.order.provider.dao.GroupOrderDao;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by liujunshi on 16-1-22.
 */
public class GroupOrderDaoImpl extends GenericDaoImpl<GroupOrder, Long> implements GroupOrderDao {
	public GroupOrderDaoImpl() {
		setNameSpace("com.yt.order.grouporder");
	}
	@Override
	public Float getGroupOrderTotalAmount(Long groupOrderId) {
		Map<String,Object> param = new HashMap<String,Object>();
		param.put("groupOrderId", groupOrderId);
		return (Float) getSqlSession().selectOne(getNameSpace() + ".groupOrderTotalAmount", param);

	}
}
